<?php
namespace app\admin\controller;

use app\common\entity\BackResult;

class Menu extends Base{

    public function index(){
        $menu = [
//            ['id'=>1,'title'=>'官网','icon'=>'el-icon-eleme','sub'=>[
//                ['id'=>'2', 'title'=>'轮播图','path'=>'/wxadmin/web/banner'],
//                ['id'=>'3', 'title'=>'模块管理','path'=>'/wxadmin/web/index']
//            ]],
//            ['id'=>4,'title'=>'动态管理','icon'=>'el-icon-time','sub'=>[
//                ['id'=>'5', 'title'=>'动态列表','path'=>'/wxadmin/circle/index'],
//            ]],
//            ['id'=>7,'title'=>'产品管理', 'icon'=>'el-icon-goods','sub'=>[
//                ['id'=>'8', 'title'=>'产品分类','path'=>'/wxadmin/category/index'],
//                ['id'=>'9', 'title'=>'产品列表','path'=>'/wxadmin/product/index'],
//                ['id'=>'16', 'title'=>'主页管理','path'=>'/wxadmin/product/home'],
//                ['id'=>'17', 'title'=>'标签管理','path'=>'/wxadmin/product/tag'],
//            ]],
//            ['id'=>10,'title'=>'名片管理', 'icon'=>'el-icon-bank-card', 'sub'=>[
//                ['id'=>'11', 'title'=>'名片列表','path'=>'/wxadmin/card/index'],
//            ]],
//            ['id'=>12,'title'=>'客户管理','icon'=>'el-icon-user','sub'=>[
//                ['id'=>'13', 'title'=>'客户列表','path'=>'/wxadmin/users/index'],
//            ]
//            ],
//            ['id'=>14,'title'=>'小程序','icon'=>'el-icon-setting','sub'=>[
//                ['id'=>'15', 'title'=>'注册','path'=>'/wxadmin/shop/read'],
//                ['id'=>'24', 'title'=>'基础信息','path'=>'/wxadmin/wxapp/info'],
//                ['id'=>'22', 'title'=>'小程序授权','path'=>'/wxadmin/wxapp/authorize'],
//                ['id'=>'23', 'title'=>'代码管理','path'=>'/wxadmin/wxapp/code'],
//            ]],
//            ['id'=>18,'title'=>'企业微信','icon'=>'el-icon-chat-round','sub'=>[
//                ['id'=>'19', 'title'=>'参数设置','path'=>'/wxadmin/qywx/config'],
//                ['id'=>'20', 'title'=>'企业部门','path'=>'/wxadmin/qywx/department'],
//                ['id'=>'21', 'title'=>'企业员工','path'=>'/wxadmin/qywx/employee'],
//            ]],
            ['id'=>22,'title'=>'视频','icon'=>'el-icon-chat-round','sub'=>[
                ['id'=>'23', 'title'=>'视频','path'=>'/admin/yike/video'],
                ['id'=>'27', 'title'=>'专栏','path'=>'/admin/yike/topic'],
                ['id'=>'24', 'title'=>'阿里视频库','path'=>'/admin/yike/video/list'],
                ['id'=>'28', 'title'=>'轮播图','path'=>'/admin/yike/banner'],
                ['id'=>'29', 'title'=>'首页推荐','path'=>'/admin/yike/recommend'],

            ]],
            ['id'=>25,'title'=>'科室','icon'=>'el-icon-chat-round','sub'=>[
                ['id'=>'26', 'title'=>'列表','path'=>'/admin/yike/category/index'],
            ]],
            ['id'=>30,'title'=>'用户','icon'=>'el-icon-chat-round','sub'=>[
                ['id'=>'31', 'title'=>'列表','path'=>'/admin/yike/user'],
            ]],
        ];
        return BackResult::success($menu,"获取目录成功");
    }

}

